package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class NewsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public NewsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNnoIsNull() {
            addCriterion("nno is null");
            return (Criteria) this;
        }

        public Criteria andNnoIsNotNull() {
            addCriterion("nno is not null");
            return (Criteria) this;
        }

        public Criteria andNnoEqualTo(String value) {
            addCriterion("nno =", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotEqualTo(String value) {
            addCriterion("nno <>", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoGreaterThan(String value) {
            addCriterion("nno >", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoGreaterThanOrEqualTo(String value) {
            addCriterion("nno >=", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoLessThan(String value) {
            addCriterion("nno <", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoLessThanOrEqualTo(String value) {
            addCriterion("nno <=", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoLike(String value) {
            addCriterion("nno like", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotLike(String value) {
            addCriterion("nno not like", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoIn(List<String> values) {
            addCriterion("nno in", values, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotIn(List<String> values) {
            addCriterion("nno not in", values, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoBetween(String value1, String value2) {
            addCriterion("nno between", value1, value2, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotBetween(String value1, String value2) {
            addCriterion("nno not between", value1, value2, "nno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andNnameIsNull() {
            addCriterion("nName is null");
            return (Criteria) this;
        }

        public Criteria andNnameIsNotNull() {
            addCriterion("nName is not null");
            return (Criteria) this;
        }

        public Criteria andNnameEqualTo(String value) {
            addCriterion("nName =", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameNotEqualTo(String value) {
            addCriterion("nName <>", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameGreaterThan(String value) {
            addCriterion("nName >", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameGreaterThanOrEqualTo(String value) {
            addCriterion("nName >=", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameLessThan(String value) {
            addCriterion("nName <", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameLessThanOrEqualTo(String value) {
            addCriterion("nName <=", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameLike(String value) {
            addCriterion("nName like", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameNotLike(String value) {
            addCriterion("nName not like", value, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameIn(List<String> values) {
            addCriterion("nName in", values, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameNotIn(List<String> values) {
            addCriterion("nName not in", values, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameBetween(String value1, String value2) {
            addCriterion("nName between", value1, value2, "nname");
            return (Criteria) this;
        }

        public Criteria andNnameNotBetween(String value1, String value2) {
            addCriterion("nName not between", value1, value2, "nname");
            return (Criteria) this;
        }

        public Criteria andNstartdateIsNull() {
            addCriterion("nStartDate is null");
            return (Criteria) this;
        }

        public Criteria andNstartdateIsNotNull() {
            addCriterion("nStartDate is not null");
            return (Criteria) this;
        }

        public Criteria andNstartdateEqualTo(String value) {
            addCriterion("nStartDate =", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateNotEqualTo(String value) {
            addCriterion("nStartDate <>", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateGreaterThan(String value) {
            addCriterion("nStartDate >", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateGreaterThanOrEqualTo(String value) {
            addCriterion("nStartDate >=", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateLessThan(String value) {
            addCriterion("nStartDate <", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateLessThanOrEqualTo(String value) {
            addCriterion("nStartDate <=", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateLike(String value) {
            addCriterion("nStartDate like", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateNotLike(String value) {
            addCriterion("nStartDate not like", value, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateIn(List<String> values) {
            addCriterion("nStartDate in", values, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateNotIn(List<String> values) {
            addCriterion("nStartDate not in", values, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateBetween(String value1, String value2) {
            addCriterion("nStartDate between", value1, value2, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNstartdateNotBetween(String value1, String value2) {
            addCriterion("nStartDate not between", value1, value2, "nstartdate");
            return (Criteria) this;
        }

        public Criteria andNnumberIsNull() {
            addCriterion("nNumber is null");
            return (Criteria) this;
        }

        public Criteria andNnumberIsNotNull() {
            addCriterion("nNumber is not null");
            return (Criteria) this;
        }

        public Criteria andNnumberEqualTo(String value) {
            addCriterion("nNumber =", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberNotEqualTo(String value) {
            addCriterion("nNumber <>", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberGreaterThan(String value) {
            addCriterion("nNumber >", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberGreaterThanOrEqualTo(String value) {
            addCriterion("nNumber >=", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberLessThan(String value) {
            addCriterion("nNumber <", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberLessThanOrEqualTo(String value) {
            addCriterion("nNumber <=", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberLike(String value) {
            addCriterion("nNumber like", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberNotLike(String value) {
            addCriterion("nNumber not like", value, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberIn(List<String> values) {
            addCriterion("nNumber in", values, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberNotIn(List<String> values) {
            addCriterion("nNumber not in", values, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberBetween(String value1, String value2) {
            addCriterion("nNumber between", value1, value2, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNnumberNotBetween(String value1, String value2) {
            addCriterion("nNumber not between", value1, value2, "nnumber");
            return (Criteria) this;
        }

        public Criteria andNdescribIsNull() {
            addCriterion("nDescrib is null");
            return (Criteria) this;
        }

        public Criteria andNdescribIsNotNull() {
            addCriterion("nDescrib is not null");
            return (Criteria) this;
        }

        public Criteria andNdescribEqualTo(String value) {
            addCriterion("nDescrib =", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribNotEqualTo(String value) {
            addCriterion("nDescrib <>", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribGreaterThan(String value) {
            addCriterion("nDescrib >", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribGreaterThanOrEqualTo(String value) {
            addCriterion("nDescrib >=", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribLessThan(String value) {
            addCriterion("nDescrib <", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribLessThanOrEqualTo(String value) {
            addCriterion("nDescrib <=", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribLike(String value) {
            addCriterion("nDescrib like", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribNotLike(String value) {
            addCriterion("nDescrib not like", value, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribIn(List<String> values) {
            addCriterion("nDescrib in", values, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribNotIn(List<String> values) {
            addCriterion("nDescrib not in", values, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribBetween(String value1, String value2) {
            addCriterion("nDescrib between", value1, value2, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNdescribNotBetween(String value1, String value2) {
            addCriterion("nDescrib not between", value1, value2, "ndescrib");
            return (Criteria) this;
        }

        public Criteria andNstateIsNull() {
            addCriterion("nState is null");
            return (Criteria) this;
        }

        public Criteria andNstateIsNotNull() {
            addCriterion("nState is not null");
            return (Criteria) this;
        }

        public Criteria andNstateEqualTo(Integer value) {
            addCriterion("nState =", value, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateNotEqualTo(Integer value) {
            addCriterion("nState <>", value, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateGreaterThan(Integer value) {
            addCriterion("nState >", value, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("nState >=", value, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateLessThan(Integer value) {
            addCriterion("nState <", value, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateLessThanOrEqualTo(Integer value) {
            addCriterion("nState <=", value, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateIn(List<Integer> values) {
            addCriterion("nState in", values, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateNotIn(List<Integer> values) {
            addCriterion("nState not in", values, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateBetween(Integer value1, Integer value2) {
            addCriterion("nState between", value1, value2, "nstate");
            return (Criteria) this;
        }

        public Criteria andNstateNotBetween(Integer value1, Integer value2) {
            addCriterion("nState not between", value1, value2, "nstate");
            return (Criteria) this;
        }

        public Criteria andNimgIsNull() {
            addCriterion("nImg is null");
            return (Criteria) this;
        }

        public Criteria andNimgIsNotNull() {
            addCriterion("nImg is not null");
            return (Criteria) this;
        }

        public Criteria andNimgEqualTo(String value) {
            addCriterion("nImg =", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgNotEqualTo(String value) {
            addCriterion("nImg <>", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgGreaterThan(String value) {
            addCriterion("nImg >", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgGreaterThanOrEqualTo(String value) {
            addCriterion("nImg >=", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgLessThan(String value) {
            addCriterion("nImg <", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgLessThanOrEqualTo(String value) {
            addCriterion("nImg <=", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgLike(String value) {
            addCriterion("nImg like", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgNotLike(String value) {
            addCriterion("nImg not like", value, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgIn(List<String> values) {
            addCriterion("nImg in", values, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgNotIn(List<String> values) {
            addCriterion("nImg not in", values, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgBetween(String value1, String value2) {
            addCriterion("nImg between", value1, value2, "nimg");
            return (Criteria) this;
        }

        public Criteria andNimgNotBetween(String value1, String value2) {
            addCriterion("nImg not between", value1, value2, "nimg");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}